function add(...nums) {
    let result = 0;
    for (let num of nums) {
        result += num;
    }
    return result;
}

/**
 * Common JS 导出示例
 **/
module.exports = {
    add
};
